package cn.com.se.sharepictrue.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * 主页分享列表界面列表bean类
 * Created by KIDNG on 2015/11/2.
 */
public class HomeShareBean  implements Serializable {
    /**
     * shareid : 3
     * userid : 1
     * addtime : 2015-11-27 21:51:24
     * isshow : 1
     * sayhi : 1232313654
     * img : ["www.lalali.cn/app/Public/upload/20151127/56585fdc90d92.jpg","www.lalali.cn/app/Public/upload/20151127/56585fdc91564.jpg","www.lalali.cn/app/Public/upload/20151127/56585fdc91d31.jpg"]
     * commentnum : 0
     * likenum : 0
     * favoritenum : 0
     * username : null
     * signature : null
     * portrait: "http://www.lalali.cn/app/Public/portrait/20151130/565c2493c97f4.jpg",
     * favorite : 0
     * likeit : 0
     * concernuserid : 0
     */

    /**
     * shareId 分享id
     * userId 用户id
     * addTime 分享时间
     * isShow 是否显示
     * shareContent 分享的内容
     * commentNum 评论总数
     * praiseNum 点赞总数
     * collectionNum 收藏数
     * userName 用户昵称
     * signature 用户签名
     * portrait: 头像地址
     * favoriteStatus 是否已收藏分享,0为未收藏，1为收藏
     * praiseStatus 是否已点赞，0位未点赞，1为已点赞
     * concernUserId 关注的用户id, 0为未关注，其他是用户id
     * imgs img的url地址列表
     */

    @SerializedName("shareID")
    private String shareId;//分享id
    @SerializedName("userID")
    private String userId;//用户id
    @SerializedName("addTime")
    private String addTime; //分享时间
    @SerializedName("isShow")
    private String isShow;//是否显示
    @SerializedName("sayHi")
    private String shareContent;//分享的内容
    @SerializedName("commentNum")
    private int commentNum;//评论总数
    @SerializedName("likeNum")
    private int praiseNum;//点赞总数
    @SerializedName("favoriteNum")
    private String collectionNum;//收藏数
    @SerializedName("username")
    private String userName;//用户昵称
    @SerializedName("signature")
    private String signature;//用户签名
    @SerializedName("portrait")
    private String avatar;
    @SerializedName("favorite")
    private String favoriteStatus;//是否已收藏分享,0为未收藏，1为收藏
    public static final String HOME_SHARE_IS_FAVORITE = "1";
    public static final String HOME_SHARE_NO_FAVORITE = "0";
    @SerializedName("likeIt")
    private String praiseStatus;//是否已点赞，1为已点赞
    public static final String HOME_SHARE_IS_PRAISE = "1";
    public static final String HOME_SHARE_NO_PRAISE = "0";
    @SerializedName("concernUserID")
    private String concernUserId;//关注的用户id, 0为未关注，其他是用户id
    public static final String HOME_SHARE_NO_CONCERN = "0";
    @SerializedName("img")
    private List<String> imgs;

    public void setShareId(String shareId) {
        this.shareId = shareId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public void setIsShow(String isShow) {
        this.isShow = isShow;
    }

    public void setShareContent(String shareContent) {
        this.shareContent = shareContent;
    }

    public void setCommentNum(int commentNum) {
        this.commentNum = commentNum;
    }

    public void setPraiseNum(int praiseNum) {
        this.praiseNum = praiseNum;
    }

    public void setCollectionNum(String collectionNum) {
        this.collectionNum = collectionNum;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public void setFavoriteStatus(String favoriteStatus) {
        this.favoriteStatus = favoriteStatus;
    }

    public void setPraiseStatus(String praiseStatus) {
        this.praiseStatus = praiseStatus;
    }

    public void setConcernUserId(String concernUserId) {
        this.concernUserId = concernUserId;
    }

    public void setImgs(List<String> img) {
        this.imgs = img;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getShareId() {
        return shareId;
    }

    public String getUserId() {
        return userId;
    }

    public String getAddTime() {
        return addTime;
    }

    public String getIsShow() {
        return isShow;
    }

    public String getShareContent() {
        return shareContent;
    }

    public int getCommentNum() {
        return commentNum;
    }

    public int getPraiseNum() {
        return praiseNum;
    }

    public String getCollectionNum() {
        return collectionNum;
    }

    public String getUserName() {
        return userName == null ? "" : userName;
    }

    public String getSignature() {
        return signature == null ? "" : signature;
    }

    public String getFavoriteStatus() {
        return favoriteStatus;
    }

    public String getPraiseStatus() {
        return praiseStatus;
    }

    public String getConcernUserId() {
        return concernUserId;
    }

    public List<String> getImgs() {
        return imgs;
    }

    public String getAvatar() {
        return avatar;
    }

    @Override
    public String toString() {
        return "{" +
                "shareId='" + shareId + '\'' +
                ", userId='" + userId + '\'' +
                ", addTime='" + addTime + '\'' +
                ", isShow='" + isShow + '\'' +
                ", shareContent='" + shareContent + '\'' +
                ", commentNum=" + commentNum +
                ", praiseNum=" + praiseNum +
                ", collectionNum='" + collectionNum + '\'' +
                ", userName='" + userName + '\'' +
                ", signature='" + signature + '\'' +
                ", avatar='" + avatar + '\'' +
                ", favoriteStatus='" + favoriteStatus + '\'' +
                ", praiseStatus='" + praiseStatus + '\'' +
                ", concernUserId='" + concernUserId + '\'' +
                ", imgs=" + imgs +
                '}';
    }
}
